package com.scott.prototype.greatestsage;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 金箍棒
 */
@Setter
@Getter
@ToString
public class GoldRingedStaff implements Serializable {

    private static final long serialVersionUID = 210011253385635840L;
    /**
     * 长度 默认100
     */
    private float height = 100;

    /**
     * 直径 默认 10
     */
    private float diameter = 10;


    /**
     * 金箍棒变大一倍
     */
    public void grow() {
        this.diameter *= 2;
        this.height *= 2;
    }

    /**
     * 金箍棒变下一倍
     */
    public void shrink() {
        this.diameter /= 2;
        this.height /= 2;
    }

}
